package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Set;

public interface IPermissionService {
    void delete(Long id);
    void insert(Permission permission);
    Permission get(Long id);
    List<Permission> listAll();
    void update(Permission permission);
    // 添加分页功能
    PageInfo<Permission> query(QueryObject qo);

    // 批量插入
    void batchSave(Set<Permission> permissions);
    // 查找权限
    List<Permission> queryByRoleId(Long roleId);

    // 通过员工id查询 该员工的权限
    List<String> queryExpressionByEmployeeId(Long employeeId);
}
